<template >
    <div >
        <h1 >学校姓名:{{name |mySlice}}</h1>
        <h1 >地址:{{address}}</h1>
        <button @click="showHello">点我现实hello</button>
    </div>
</template>



<script>



export default {
    name:'SchoolName',
    data() {
        return {
            name:'清华11111',
            address: '北京'
        }
    },
    methods:{
        showHello(){
            this.hello();
        }
    }
   }
</script>
